package com.daydaykeep.view;


import android.content.Context;
import android.graphics.Color;
import android.support.annotation.Nullable;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsoluteLayout;
import android.widget.CalendarView;
import com.facebook.react.ReactRootView;
import com.facebook.react.uimanager.SimpleViewManager;
import com.facebook.react.uimanager.ThemedReactContext;
import com.facebook.react.uimanager.annotations.ReactProp;
import com.facebook.react.views.view.ReactViewGroup;


public class TestRootViewManager extends SimpleViewManager<ReactRootView>
{

    public static final String CalendarViewName="TestRootView";

    @Override
    public String getName() {
        return CalendarViewName;
    }

    public View createReactRootView(Context context)
    {
        ReactRootView view=new ReactRootView(context);
        view.setBackgroundColor(Color.YELLOW);
        view.setLayoutParams(new ViewGroup.LayoutParams(1000,1000));
        return view;
    }

    @Override
    protected ReactRootView createViewInstance(ThemedReactContext reactContext) {
        ReactRootView view= (ReactRootView) this.createReactRootView(reactContext);
        return view;
    }
}